package chapter9;
public class TestThreads {
	public static void main(String[] args){
		MyRunnable r = new MyRunnable();
		Thread foo = new Thread(r);
		Thread bar = new Thread(r);
		Thread bat = new Thread(r);
		
		foo.setName("foo");
		bar.setName("bar");
		bat.setName("bat");
		
		foo.run();
		bar.run();
		bat.run();
		
		foo.start();
		bar.start();
		bat.start();
		
	}
}
